/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Socket;

import java.io.Serializable;
import Common.EstadoCoelho;
import Common.EstadoCenoura;

/**
 *
 * @author tomax
 */
public class Message implements Serializable{

    private TypeFunction tipo;
    private int coelhoID;
    private int cenouraID;
    private int energy;
    private int X,Y,newX,newY;
    private EstadoCoelho rabbitState;
    private EstadoCenoura carrotState;

    public Message(TypeFunction type, int coelhoID, int cenouraID, int energy, int X, int Y, int newX, int newY, EstadoCoelho rabbitState, EstadoCenoura carrotState) {
        this.tipo = type;
        this.coelhoID = coelhoID;
        this.cenouraID = cenouraID;
        this.energy = energy;
        this.X = X;
        this.Y = Y;
        this.newX = newX;
        this.newY = newY;
        this.rabbitState = rabbitState;
        this.carrotState = carrotState;
    }

    public TypeFunction getTipo() {
        return tipo;
    }

    public int getX() {
        return X;
    }

    public int getY() {
        return Y;
    }

    public EstadoCenoura getCarrotState() {
        return carrotState;
    }

    public int getCenouraID() {
        return cenouraID;
    }

    public int getCoelhoID() {
        return coelhoID;
    }

    public int getEnergy() {
        return energy;
    }

    public int getNewX() {
        return newX;
    }

    public int getNewY() {
        return newY;
    }

    public EstadoCoelho getRabbitState() {
        return rabbitState;
    }

}
